package org.example.demo11_factory.two;

public class Client {
    public static void main(String[] args) {
        Operation addOperation = OperationFactory.createOperation("add");
        double sum = addOperation.apply(5.0, 3.0);
        System.out.println("5 + 3 = " + sum);

        Operation subtractOperation = OperationFactory.createOperation("subtract");
        double diff = subtractOperation.apply(5.0, 3.0);
        System.out.println("5 - 3 = " + diff);
    }
}